home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / insure2 / report.frm < prev    next >
Text File  |  1995-05-02  |  3KB  |  112 lines

  1. VERSION 2.00
  2. Begin Form Report 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Report"
  6.    ClientHeight    =   5475
  7.    ClientLeft      =   1245
  8.    ClientTop       =   1605
  9.    ClientWidth     =   6300
  10.    ControlBox      =   0   'False
  11.    Height          =   5880
  12.    Left            =   1185
  13.    LinkMode        =   1  'Source
  14.    LinkTopic       =   "Form4"
  15.    MaxButton       =   0   'False
  16.    MinButton       =   0   'False
  17.    ScaleHeight     =   5475
  18.    ScaleWidth      =   6300
  19.    Top             =   1260
  20.    Width           =   6420
  21.    Begin SSPanel Panel3D1 
  22.       BackColor       =   &H00C0C0C0&
  23.       BevelInner      =   1  'Inset
  24.       BevelOuter      =   0  'None
  25.       BevelWidth      =   3
  26.       Font3D          =   2  'Raised w/heavy shading
  27.       ForeColor       =   &H00000000&
  28.       Height          =   1155
  29.       Left            =   2505
  30.       TabIndex        =   0
  31.       Top             =   5730
  32.       Width           =   4335
  33.       Begin SSCommand Command3D1 
  34.          Caption         =   "Finished - Exit"
  35.          Font3D          =   3  'Inset w/light shading
  36.          ForeColor       =   &H00000000&
  37.          Height          =   855
  38.          Left            =   2250
  39.          Picture         =   REPORT.FRX:0000
  40.          TabIndex        =   2
  41.          Top             =   165
  42.          Width           =   1875
  43.       End
  44.       Begin SSCommand Command3D3 
  45.          Caption         =   "Return to Main Form"
  46.          Font3D          =   3  'Inset w/light shading
  47.          ForeColor       =   &H00000000&
  48.          Height          =   855
  49.          Left            =   255
  50.          Picture         =   REPORT.FRX:0302
  51.          TabIndex        =   1
  52.          Top             =   165
  53.          Width           =   1875
  54.       End
  55.    End
  56.    Begin SSPanel Panel3D2 
  57.       BackColor       =   &H00C0C0C0&
  58.       BevelInner      =   1  'Inset
  59.       BevelOuter      =   0  'None
  60.       BevelWidth      =   3
  61.       Caption         =   "Report/Analysis"
  62.       Font3D          =   2  'Raised w/heavy shading
  63.       FontBold        =   -1  'True
  64.       FontItalic      =   0   'False
  65.       FontName        =   "MS Sans Serif"
  66.       FontSize        =   12
  67.       FontStrikethru  =   0   'False
  68.       FontUnderline   =   0   'False
  69.       ForeColor       =   &H00000000&
  70.       Height          =   510
  71.       Left            =   3045
  72.       TabIndex        =   3
  73.       Top             =   75
  74.       Width           =   3375
  75.    End
  76. End
  77.  
  78. Sub Command3D1_Click ()
  79. End
  80.  
  81. End Sub
  82.  
  83. Sub Command3D3_Click ()
  84. form1.Show
  85. report.Hide
  86. End Sub
  87.  
  88. Sub Form_Load ()
  89. report.WindowState = 2
  90.  
  91. End Sub
  92.  
  93. Sub Form_Paint ()
  94. report.Cls
  95. report.CurrentY = 1000
  96.     report.FontSize = 13.5
  97.     If form1.Option3D5.Value = -1 Then
  98.       title$ = "Mr. "
  99.     Else title$ = "Ms. "
  100.     End If
  101.     report.Print "Name: "; title$ + form1.BEdit1.Text
  102.     report.Print "Marital Status: "; status$
  103.     report.Print "Policy Number: 00283-A"
  104.     report.Print "Date of Birth: " + form1.BEdit5.Text + "/" + form1.BEdit2.Text + "/" + form1.BEdit3.Text
  105.     report.Print "Occupation: "; form1.HEdit2.Text
  106.     report.Print "State of Birth: "; form1.Combo1.Text
  107.     report.Print "State of Residence: "; form1.Combo2.Text
  108.     report.Print "Type of Policy: "; form1.Combo3.Text
  109.     report.Print "Amount to Insure: "; "$" + form1.BEdit7.Text + "," + form1.BEdit8.Text
  110. End Sub
  111.  
  112.